/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkgUtil.pkgSupportFile.pkgFrameworkFile;

import java.io.File;

/**
 *
 * @author Jorge Armando Ayala
 */
public class SelectFile {

    private File selectFile;
    private int resultSelection;

    /**
     * @return the selectFile
     */
    public File getSelectFile() {
        return selectFile;
    }

    /**
     * @param selectFile the selectFile to set
     */
    public void setSelectFile(File selectFile) {
        this.selectFile = selectFile;
    }

    /**
     * @return the resultSelection
     */
    public int getResultSelection() {
        return resultSelection;
    }

    /**
     * @param resultSelection the resultSelection to set
     */
    public void setResultSelection(int resultSelection) {
        this.resultSelection = resultSelection;
    }

    public boolean existsFile() {
        if (selectFile == null) {
            return false;
        }

        return selectFile.exists();

    }

    public boolean deleteFile() {
        if (selectFile == null) {
            return false;
        }
        return selectFile.delete();
    }
}
